﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;

namespace mates_viz
{
    static class Error
    {
        public static void PrepareLog()
        {
            TextWriterTraceListener myWriter = new
                          TextWriterTraceListener("debug.txt");
            Debug.Listeners.Add(myWriter);
            Debug.AutoFlush = true;
            Debug.WriteLine("Mates Initialized." + DateTime.Now.ToString());

        }

        public static void Log(string ErrorMessage)
        {
            Debug.WriteLine(ErrorMessage);
        }
    }
}
